﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model.Member
{   //会员表
    [Table("T_Member")]
    public class T_Member
    {
        /// <summary>
        /// 会员id
        /// </summary>
        [Key]
        public int M_Id { get; set; }
        /// <summary>
        /// 会员手机号
        /// </summary>
        public string M_Phone { get; set; }
        /// <summary>
        /// 会员密码
        /// </summary>
        public string? M_Pwd { get; set; }
        /// <summary>
        /// 会员真实姓名
        /// </summary>
        public string M_Name { get; set; }
        /// <summary>
        /// 会员证件类型
        /// </summary>
        public int? M_Type { get; set; }
        /// <summary>
        /// 会员证件号
        /// </summary>
        public string M_Card { get; set; }
        /// <summary>
        /// 会员注册时间
        /// </summary>
        public DateTime M_Date { get; set; } = DateTime.Now;
        /// <summary>
        /// 会员性别
        /// </summary>
        public bool? M_Sex { get; set; }
        /// <summary>
        /// 注销的状态
        /// </summary>
        public int? M_State { get; set; }
        /// <summary>
        /// 会员的头像
        /// </summary>
        public string? M_Photo { get; set; } = "";

        /// <summary>
        /// 会员的生日
        /// </summary>
        public DateTime? M_Birth {  get; set; }
        /// <summary>
        /// 会员的积分
        /// </summary>
        public int? M_Number { get; set; } = 0;

        /// <summary>
        /// 会员的余额
        /// </summary>
        public int? M_Money { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool  IsDelete { get; set; } = false;
        
        /// <summary>
        /// 会员等级
        /// </summary>
        public int LevelId { get; set; }

    }

    
}
